<?php

$name = $_POST['name'];
$passwd = $_POST['passwd'];
$sex = $_POST['gender'];
$citys = $_POST['checkbox'];
$city = $_POST['ct'];

$bj = $_POST['bj'];
$sh = $_POST['sh'];

$fs = $_POST['fs'];

if (isset($fs)) {
    //$fs = implode(separator: ',', $fs);
    echo "fs: " . $fs . '<br>';
    foreach ($fs as $v) {
        echo "e: " . $v . '<br>';
    }
} else {
    echo 'fs not array.<br>';
}

echo "你的信息， 账号：" . $name . " 性别：" . $sex . " 城市：" . $citys . " 选择：" . $city . '<br>';
echo "多选:".$_POST['apple'].' '.$_POST['banana'].'<br>';
echo "checkbox：北京" . $bj .", 上海" . $sh . '<br>';
?>
<!--  -->